home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / CMPRComponent.a < prev    next >
Text File  |  1996-05-01  |  3KB  |  116 lines

  1. ;
  2. ;    File:        CMPRComponent.a
  3. ;
  4. ;    Contains:    ColorSync ProfileResponder Components Interface 
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.0
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__CMPRCOMPONENT__') = 'UNDEFINED' THEN
  19. __CMPRCOMPONENT__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  28.     include 'Components.a'
  29.     ENDIF
  30.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  31.     include 'CMApplication.a'
  32.     ENDIF
  33.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  34.  
  35. CMPRInterfaceVersion            EQU        0
  36. ;  Component function selectors 
  37.  
  38. kCMPRGetProfile                    EQU        0
  39. kCMPRSetProfile                    EQU        1
  40. kCMPRSetProfileDescription        EQU        2
  41. kCMPRGetIndexedProfile            EQU        3
  42. kCMPRDeleteDeviceProfile        EQU        4
  43. ;
  44. ; pascal CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  45. ;
  46.     IF ¨ GENERATINGCFM THEN
  47.         Macro
  48.         _CMGetProfile
  49.             move.l              #$00080000,-(sp)
  50.             moveq               #0,D0
  51.             dc.w                $A82A
  52.         EndM
  53.     ELSE
  54.         IMPORT_CFM_FUNCTION CMGetProfile
  55.     ENDIF
  56.  
  57. ;
  58. ; pascal CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
  59. ;
  60.     IF ¨ GENERATINGCFM THEN
  61.         Macro
  62.         _CMSetProfile
  63.             move.l              #$00040001,-(sp)
  64.             moveq               #0,D0
  65.             dc.w                $A82A
  66.         EndM
  67.     ELSE
  68.         IMPORT_CFM_FUNCTION CMSetProfile
  69.     ENDIF
  70.  
  71. ;
  72. ; pascal CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
  73. ;
  74.     IF ¨ GENERATINGCFM THEN
  75.         Macro
  76.         _CMSetProfileDescription
  77.             move.l              #$00080002,-(sp)
  78.             moveq               #0,D0
  79.             dc.w                $A82A
  80.         EndM
  81.     ELSE
  82.         IMPORT_CFM_FUNCTION CMSetProfileDescription
  83.     ENDIF
  84.  
  85. ;
  86. ; pascal CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  87. ;
  88.     IF ¨ GENERATINGCFM THEN
  89.         Macro
  90.         _CMGetIndexedProfile
  91.             move.l              #$000C0003,-(sp)
  92.             moveq               #0,D0
  93.             dc.w                $A82A
  94.         EndM
  95.     ELSE
  96.         IMPORT_CFM_FUNCTION CMGetIndexedProfile
  97.     ENDIF
  98.  
  99. ;
  100. ; pascal CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
  101. ;
  102.     IF ¨ GENERATINGCFM THEN
  103.         Macro
  104.         _CMDeleteDeviceProfile
  105.             move.l              #$00040004,-(sp)
  106.             moveq               #0,D0
  107.             dc.w                $A82A
  108.         EndM
  109.     ELSE
  110.         IMPORT_CFM_FUNCTION CMDeleteDeviceProfile
  111.     ENDIF
  112.  
  113.     ENDIF
  114.     ENDIF ; __CMPRCOMPONENT__ 
  115.  
  116.